package dao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Complaints entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "complaints", catalog = "leko")
public class Complaints implements java.io.Serializable {

	// Fields

	private Integer id;
	private String userAcc;
	private String trueName;
	private String idNumber;
	private String contact;
	private String complaintInfo;
	private Short type;
	private String answer;
	private String answerName;

	// Constructors

	/** default constructor */
	public Complaints() {
	}

	/** full constructor */
	public Complaints(String userAcc, String trueName, String idNumber,
			String contact, String complaintInfo, Short type, String answer,
			String answerName) {
		this.userAcc = userAcc;
		this.trueName = trueName;
		this.idNumber = idNumber;
		this.contact = contact;
		this.complaintInfo = complaintInfo;
		this.type = type;
		this.answer = answer;
		this.answerName = answerName;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userAcc", length = 20)
	public String getUserAcc() {
		return this.userAcc;
	}

	public void setUserAcc(String userAcc) {
		this.userAcc = userAcc;
	}

	@Column(name = "trueName", length = 20)
	public String getTrueName() {
		return this.trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	@Column(name = "idNumber", length = 18)
	public String getIdNumber() {
		return this.idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}

	@Column(name = "contact", length = 60)
	public String getContact() {
		return this.contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	@Column(name = "complaintInfo", length = 65535)
	public String getComplaintInfo() {
		return this.complaintInfo;
	}

	public void setComplaintInfo(String complaintInfo) {
		this.complaintInfo = complaintInfo;
	}

	@Column(name = "type")
	public Short getType() {
		return this.type;
	}

	public void setType(Short type) {
		this.type = type;
	}

	@Column(name = "answer", length = 65535)
	public String getAnswer() {
		return this.answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	@Column(name = "answerName", length = 20)
	public String getAnswerName() {
		return this.answerName;
	}

	public void setAnswerName(String answerName) {
		this.answerName = answerName;
	}

}